var Facade = function (){
	this._modules = null;
	this.model = null;
	this.modelManager = null;
	this.moduleController = null;
	this.broker = null;
};
Facade.prototype = {
	initialization : function(){
		this._modules = {};
		this.broker = new business.Broker();
		this.modelManager = new frameworks.models.ModelManager();
		this.model = new models.Model();
		this.moduleController = new controllers.ModuleController();
	},
	registerModule : function(module){
		var id = module.id;
		if(this._modules[id] != null){throw new Error("组件["+id+"]已经存在！");}
		this._modules[id] = module;
		module.buildEnvironment();
	}
};

var facade = new Facade();